﻿using Architecture.Domain;
using Architecture.Domain.Dto;
using Architecture.Domain.RBAC;
using Microsoft.VisualBasic;

namespace Architecture.Service
{
    public interface IUserService
    {
        #region 用户表

        Task<Domain.Dto.Information> Login(string username, string userpwd);
        Task<int> AddAsync(UserInfo model);
        Task<int> DeleteAsync(int id);
        Task<int> UpdateAsync(UserInfo model);

        /// <summary>
        /// 省份表
        /// </summary>
        /// <returns></returns>
        Task<List<Province>> GetAllProvince();
        /// <summary>
        /// 市区表
        /// </summary>
        /// <returns></returns>
        Task<List<Urban>> GetAllUrban(int? id);
        /// <summary>
        /// 县城表
        /// </summary>
        /// <returns></returns>
        Task<List<County>> GetAlCounty(int? id);
        //列表
        Task<PageListDto<UserListDto>> GetAllAsync(int pageIndex, int pageSize,string? userName);
        Task<UserInfo> GetUserInfo(int id);
        Task<object> GetInquire(string ids);

        #endregion
    }
}